From 42825bdf1d9d4e1b560e4d37a5a8500b595796eb Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Thu, 2 Jun 2005 20:27:34 +0000 Subject: [PATCH] bitkeeper revision 1.1649 (429f6bb65KQm70mnFwO33ykh9n1qag) sched.h: g/c unneeded include. Many files: Rename xen/slab.h to xen/xmalloc.h and fix resulting fallout. xmalloc.h: Rename: xen/include/xen/slab.h -> xen/include/xen/xmalloc.h sched.h, multicall.c, dom_mem_ops.c, asm-offsets.c: cleanup incorrect includes. Signed-off-by: Christian Limpach --- .rootkeys | 2 +- xen/arch/x86/dmi_scan.c | 2 +- xen/arch/x86/io_apic.c | 3 ++- xen/arch/x86/microcode.c | 2 +- xen/arch/x86/mtrr/generic.c | 2 +- xen/arch/x86/x86_32/asm-offsets.c | 1 + xen/arch/x86/x86_64/asm-offsets.c | 1 + xen/common/dom_mem_ops.c | 1 + xen/common/multicall.c | 1 + xen/common/page_alloc.c | 1 - xen/common/sched_bvt.c | 1 - xen/common/sched_sedf.c | 2 +- xen/common/trace.c | 1 - xen/include/xen/lib.h | 2 +- xen/include/xen/sched.h | 6 ------ xen/include/xen/{slab.h => xmalloc.h} | 6 +++--- 16 files changed, 15 insertions(+), 19 deletions(-) rename xen/include/xen/{slab.h => xmalloc.h} (90%) diff --git a/.rootkeys b/.rootkeys index 65875185d4..4f79a0d0c7 100644 --- a/.rootkeys +++ b/.rootkeys @@ -1445,7 +1445,6 @@ 3ddb79c0LzqqS0LhAQ50ekgj4oGl7Q xen/include/xen/sched.h 403a06a7H0hpHcKpAiDe5BPnaXWTlA xen/include/xen/serial.h 4252c315hw0xXYMKIfFzhomi1M1yNA xen/include/xen/shadow.h -3ddb79c14dXIhP7C2ahnoD08K90G_w xen/include/xen/slab.h 3ddb79c09xbS-xxfKxuV3JETIhBzmg xen/include/xen/smp.h 3ddb79c1Vi5VleJAOKHAlY0G2zAsgw xen/include/xen/softirq.h 3ddb79c2iIcESrDAB8samy_yAh6olQ xen/include/xen/spinlock.h @@ -1453,6 +1452,7 @@ 3ddb79c0BnA20PbgmuMPSGIBljNRQw xen/include/xen/time.h 403a3edbG9K5uZjuY19_LORbQGmFbA xen/include/xen/trace.h 3ddb79c1-kVvF8cVa0k3ZHDdBMj01Q xen/include/xen/types.h +3ddb79c14dXIhP7C2ahnoD08K90G_w xen/include/xen/xmalloc.h 41d291f5u3J3HYViXLs3cNuFGTvzNg xen/tools/Makefile 3eb3c87fc79FXLA6R9TvdBJNTvQDwA xen/tools/figlet/LICENSE 3eb3c87fPL2T_zBb0bHlbZY-ACEKRw xen/tools/figlet/Makefile diff --git a/xen/arch/x86/dmi_scan.c b/xen/arch/x86/dmi_scan.c index 13c8d97915..3bb1820c66 100644 --- a/xen/arch/x86/dmi_scan.c +++ b/xen/arch/x86/dmi_scan.c @@ -1,10 +1,10 @@ #include #include +#include #include #include #include #include -#include #include #include #include diff --git a/xen/arch/x86/io_apic.c b/xen/arch/x86/io_apic.c index 71a8260453..a0020c7ec2 100644 --- a/xen/arch/x86/io_apic.c +++ b/xen/arch/x86/io_apic.c @@ -21,6 +21,7 @@ */ #include +#include #include #include #include @@ -234,7 +235,7 @@ static void set_ioapic_affinity_irq(unsigned int irq, cpumask_t cpumask) #if defined(CONFIG_IRQBALANCE) # include /* kernel_thread() */ # include /* kstat */ -# include /* kmalloc() */ +# include /* kmalloc() */ # include /* time_after() */ # ifdef CONFIG_BALANCED_IRQ_DEBUG diff --git a/xen/arch/x86/microcode.c b/xen/arch/x86/microcode.c index fcf4f94125..6e47acea3f 100644 --- a/xen/arch/x86/microcode.c +++ b/xen/arch/x86/microcode.c @@ -70,10 +70,10 @@ */ #include +#include #include #include #include -#include #include #include diff --git a/xen/arch/x86/mtrr/generic.c b/xen/arch/x86/mtrr/generic.c index 899069acf4..9ab5be4ec6 100644 --- a/xen/arch/x86/mtrr/generic.c +++ b/xen/arch/x86/mtrr/generic.c @@ -1,8 +1,8 @@ /* This only handles 32bit MTRR on 32bit hosts. This is strictly wrong because MTRRs can span upto 40 bits (36bits on most modern x86) */ +#include #include #include -#include #include #include #include diff --git a/xen/arch/x86/x86_32/asm-offsets.c b/xen/arch/x86/x86_32/asm-offsets.c index b12d19bd80..efc4aa3ecf 100644 --- a/xen/arch/x86/x86_32/asm-offsets.c +++ b/xen/arch/x86/x86_32/asm-offsets.c @@ -7,6 +7,7 @@ #include #include #include +#include #define DEFINE(_sym, _val) \ __asm__ __volatile__ ( "\n->" #_sym " %0 " #_val : : "i" (_val) ) diff --git a/xen/arch/x86/x86_64/asm-offsets.c b/xen/arch/x86/x86_64/asm-offsets.c index fdb1359c76..29e3808736 100644 --- a/xen/arch/x86/x86_64/asm-offsets.c +++ b/xen/arch/x86/x86_64/asm-offsets.c @@ -7,6 +7,7 @@ #include #include #include +#include #define DEFINE(_sym, _val) \ __asm__ __volatile__ ( "\n->" #_sym " %0 " #_val : : "i" (_val) ) diff --git a/xen/common/dom_mem_ops.c b/xen/common/dom_mem_ops.c index 40aa522eb0..41a4406f0c 100644 --- a/xen/common/dom_mem_ops.c +++ b/xen/common/dom_mem_ops.c @@ -15,6 +15,7 @@ #include #include #include +#include /* * To allow safe resume of do_dom_mem_op() after preemption, we need to know diff --git a/xen/common/multicall.c b/xen/common/multicall.c index 1403041db8..3f6921353b 100644 --- a/xen/common/multicall.c +++ b/xen/common/multicall.c @@ -10,6 +10,7 @@ #include #include #include +#include struct mc_state mc_state[NR_CPUS]; diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c index 5b388cafbf..50b1268e85 100644 --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -27,7 +27,6 @@ #include #include #include -#include #include #include #include diff --git a/xen/common/sched_bvt.c b/xen/common/sched_bvt.c index 580698c53b..35f901fccc 100644 --- a/xen/common/sched_bvt.c +++ b/xen/common/sched_bvt.c @@ -23,7 +23,6 @@ #include #include #include -#include #include /* all per-domain BVT-specific scheduling info is stored here */ diff --git a/xen/common/sched_sedf.c b/xen/common/sched_sedf.c index 646f4e8bd9..15420e6eb4 100644 --- a/xen/common/sched_sedf.c +++ b/xen/common/sched_sedf.c @@ -5,13 +5,13 @@ * based on code by Mark Williamson (C) 2004 Intel Research Cambridge */ +#include #include #include #include #include #include #include -#include /*verbosity settings*/ #define SEDFLEVEL 0 diff --git a/xen/common/trace.c b/xen/common/trace.c index 952a2f9583..291d35dd28 100644 --- a/xen/common/trace.c +++ b/xen/common/trace.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include diff --git a/xen/include/xen/lib.h b/xen/include/xen/lib.h index 367456e99e..2c77b43056 100644 --- a/xen/include/xen/lib.h +++ b/xen/include/xen/lib.h @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #define BUG() do { \ diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index 43d218fc00..366f3ae661 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -7,21 +7,15 @@ #include #include #include -#include -#include #include #include #include #include #include #include -#include -#include #include #include -#include #include -#include extern unsigned long volatile jiffies; extern rwlock_t domlist_lock; diff --git a/xen/include/xen/slab.h b/xen/include/xen/xmalloc.h similarity index 90% rename from xen/include/xen/slab.h rename to xen/include/xen/xmalloc.h index 4736dede90..893627f04a 100644 --- a/xen/include/xen/slab.h +++ b/xen/include/xen/xmalloc.h @@ -1,6 +1,6 @@ -#ifndef __SLAB_H__ -#define __SLAB_H__ +#ifndef __XMALLOC_H__ +#define __XMALLOC_H__ /* Allocate space for typed object. */ #define xmalloc(_type) ((_type *)_xmalloc(sizeof(_type), __alignof__(_type))) @@ -24,4 +24,4 @@ static inline void *_xmalloc_array(size_t size, size_t align, size_t num) return _xmalloc(size * num, align); } -#endif /* __SLAB_H__ */ +#endif /* __XMALLOC_H__ */ -- 2.30.2